  <?php
    $cityid = $this->controller->C_session->read('_user_city_id');
	$cityname = '全国';
	if($cityid) {
        $this->controller->loadModel('area');
	    $array = $this->controller->area->find('first', array('conditions' =>array('area.id' =>$cityid )));
		if($array) {
		    $cityname = $array['area']['area_name'];
		}	    
	}	
?>  
    <div class="exchangeArea1">
    	<a href="#"><span class="fontRed1"><?php echo $cityname; ?></span><span class="choose_city">[<span class="divcityqiehuang fontDust1 city" rel="<?php echo $this->_url('default/city/');?>">更换城市</span>]</span></a>
    </div>
<div id="div_city_qiehuang" style="display:none;left: 10px;position: relative;top: 50px;z-index: 1005;background-color: #666;padding: 10px;">
    <div  class="div_city_qiehuangClose"  style="cursor: pointer;position: absolute;right: 20px;top: 10px;"><img src="<?php echo $this->_webroot('images/loginDialogClose.jpg'); ?>"  /></div>
    <iframe  id="div_city_qiehuang1" width="965" height="786" ></iframe>
</div>
<script>
jQuery(function($){
$(".divcityqiehuang").click(function(){
	var url = $(this).attr("rel");
	$("#div_city_qiehuang1").attr("src",url);	
	$("#div_city_qiehuang").dialog({width:1000,height:860,modal: true});
})
$(".div_city_qiehuangClose").click(function(){
    $("#div_city_qiehuang").dialog( "close" );
})
   }
)
</script>